.chat {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: absolute;

  &-main {
    min-height: 0px;
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;

    .dialog-item {
      min-width: min-content;
      max-width: 220px;
      width: 72px;
      word-break: keep-all;
      padding: 12px 0;
      top: 30px;
      border-radius: 8px;
      display: flex;
      flex-wrap: wrap;
      align-items: baseline;
      white-space: nowrap;

      li:first-child {
        margin-top: 0;
      }

      li {
        padding: 4px 12px;
        font-size: 12px;
        line-height: 17px;
        display: flex;
        flex-direction: row;
        align-items: center;
        flex-direction: row;
        cursor: pointer;

        span {
          padding-left: 4px;
        }
      }
    }
  }

  &-tips {
    padding: 12px 20px;
    background-color: #F1F6FD;
    color: #7684A1;
    line-height: 18px;
    text-align: justify;
    font-size: 12px;
    cursor: pointer;

    a {
      color: #006EFF;
      float: right;
    }
  }

  &-put-tips {
    padding: 0 16px;
    height: 36px;
    line-height: 36px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

  }

  &-footer {
    height: 173px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid #F4F5F9;

    .func {
      padding: 16px 20px;

      &-main {
        display: flex;

        div {
          margin: 0 8px;
        }
      }
    }

    .input {
      flex: 1;
      position: relative;

      textarea {
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 2px 20px 20px;
        resize: none;
        box-sizing: border-box;
        border: none;
        background: no-repeat;

        &:focus {
          outline: none;
          border: none;
        }
      }

      p {
        padding: 12px 20px 20px;
      }

      .input-btn {
        position: absolute;
        box-sizing: border-box;
        width: 64px;
        height: 30px;
        bottom: 10px;
        right: 16px;
        font-size: 16px;
        text-align: center;
        line-height: 20px;
        background: #F2F3F8;
        border: 0.6px solid #E5E7F3;
        border-radius: 4px;
        cursor: pointer;

        &:hover {
          .input-btn-hover {
            display: flex;
          }
        }

        &-hover {
          display: none;
          justify-content: center;
          align-items: center;
          position: absolute;
          right: 120%;
          word-break: keep-all;
          height: 30px;
          white-space: nowrap;
          top: 0;
          bottom: 0;
          margin: auto 0;
          padding: 5px 10px;
          border-radius: 3px;
          font-size: 12px;

          &::before {
            content: "";
            position: absolute;
            width: 0;
            height: 0;
            right: -20px;
          }
        }
      }
    }

  }
}

.message-list {
  flex: 1;
  height: 100%;
  overflow-y: auto;
  position: relative;

  .message-more {
    font-size: 12px;
    padding: 5px;
    text-align: center;
  }

  li:first-child {
    margin-top: 5px;
  }

  li {
    display: flex;
    position: relative;
    padding: 0 20px 30px;
    flex-direction: column;

    .message-label {
      max-width: 50px;
    }
  }
}

::-webkit-scrollbar {
  width: 6px;
  height: 140px;
  background-color: transparent;
}

::-webkit-scrollbar-track {
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #9A999C;
}